<!--********************************************************************
* Copyright© 2000 - 2018 SuperMap Software Co.Ltd. All rights reserved.
*********************************************************************-->
<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title data-i18n="resources.title_tiandituLayer_ll"></title>
    <script type="text/javascript" src="../js/include-web.js"></script>
    <script type="text/javascript" src="../../dist/openlayers/include-openlayers.js"></script>
</head>
<body style=" margin: 0;overflow: hidden;background: #fff;width: 100%;height:100%">
<div id="map" style="width: 100%;height:100%"></div>
<script type="text/javascript">
    var map = new ol.Map({
        target: 'map',
        controls: ol.control.defaults({attributionOptions: {collapsed: false}})
            .extend([new ol.supermap.control.Logo()]),
        view: new ol.View({
            center: [116.402, 39.905],
            zoom: 5,
            projection: "EPSG:4326"
        }),

        layers: [new ol.layer.Tile({
            source: new ol.source.Tianditu({
                layerType: 'ter',
                projection: "EPSG:4326"
            })
        }), new ol.layer.Tile({
            source: new ol.source.Tianditu({
                layerType: 'ter',
                isLabel: true,
                projection: "EPSG:4326"
            })
        })]
    });
</script>
</body>
</html>